# -*- coding: utf-8 -*-
# @Time: 2022/4/29 13:43
# @Author: 发抖的小喵喵
# @Email: panyi_20210601@163.com
# @File: 查询会员信息.py
# @Project: haixin
# @Software: PyCharm

from test_case.haixin.Method.Get import get_method



def get_member():
    """
    收银台使用客户的手机号访问我们系统查看是否是会员
    :return:
    {
    "code": 0,
    "msg":"成功",
    "data": {
      "userId"：1,
      "chiobeansNum": 10
      }hs_user_dynamic_code:39787877905
    }
    """
    url = "https://api-sit.shwoody.com/ma/chiobeansOrder/getMember"

    data = {
        "userMobile": "18930989926"  # test:13711111111  # pre本人账户 1509864748823482368  1777563809184051202
        # "userMobile": "1627486117760733184"    # 限企业账号使用
        # "userMobile": "23012965389"   # 上海我店官方加盟店1test：20851756176
    }

    response = get_method(data, url)
    print("接口响应数据：" + str(response))


if __name__ == "__main__":
    get_member()
